Skip to content

feat(detectors): Add workflow filter to detector search query#113115

Merged
malwilley merged 3 commits intomasterfrom
malwilley/detector-workflow-filter
Apr 15, 2026
Merged

feat(detectors): Add workflow filter to detector search query#113115
malwilley merged 3 commits intomasterfrom
malwilley/detector-workflow-filter

Conversation

@malwilley
Copy link
Copy Markdown
Member

Ref ISWF-2471

Modifies the detectors endpoint to support a workflow filter to give us a more flexible way of querying a workflow's connected detectors. This will be used to separately query the workflows connected projects and monitors.

Supports the full set of operators: workflow:100 for a single match, workflow:[100, 200] for multiple, and negation with !workflow:100 or !workflow:[100, 200].

Add support for filtering detectors by connected workflow ID in the
query parameter. Supports =, !=, IN, and NOT IN operators so users
can search with workflow:100 or workflow:[100,200].
@malwilley malwilley requested a review from a team as a code owner April 15, 2026 20:57
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 15, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 15, 2026
Comment thread src/sentry/workflow_engine/endpoints/organization_detector_index.py
Comment thread src/sentry/workflow_engine/endpoints/organization_detector_index.py Outdated
Comment thread src/sentry/workflow_engine/endpoints/organization_detector_index.py Outdated
Copy link
Copy Markdown
Contributor

@saponifi3d saponifi3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@malwilley malwilley merged commit 7b39044 into master Apr 15, 2026
56 checks passed
@malwilley malwilley deleted the malwilley/detector-workflow-filter branch April 15, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants